export const platform = uni.getSystemInfoSync().uniPlatform
export const isH5 = platform === 'h5'
export const isApp = platform === 'app'
export const isMp = platform.startsWith('mp-')
const PLATFORM = {
  platform,
  isH5,
  isApp,
  isMp,
}
export default PLATFORM
